All Questions
1 question
- Bountied 0
- Unanswered
- Frequent
- Score
- Trending
- Week
- Month
- Unanswered (my tags)
18votes
4answers
2kviews
Staying OO and Testable while working with a database
What are some OOP strategies for working with a database but keeping things unit testable? Say I have a User class and my production environment works against MySQL. I see a couple possible approaches,...
- The Overflow Blog
- Featured on Meta
Related Tags
architecture × 1
Hot Network Questions
- Idiomatic way of generating a unique filename?
- Whois Query to .app TLD gives "getaddrinfo(whois.nic.app): Name or service not known"
- Why would the forthcoming papal election still be valid if more than 120 Cardinals vote in it, against Universi Dominici Gregis paragraph 33?
- "Presenting" versus "bearing" a U.S.A. passport when entering Canada from the U.S.A
- How to handle teammates pressuring me (even publicly) to redo my work after I already explained my reasoning?
- How to find and replace single characters on either side a pair of variable numbers in Notepad++?
- Where am I supposed to plug in this PCIe SSD?
- After optimizing all of my structures, I discovered that one of them needs tighter convergence criteria. Is it mandatory for all to be re-done?
- What are 'induced atmospheric variations', and how do they cause grid desynchronization? (Current Spain-wide power outage)
- How can I fill a 4 inch gap between carpet and vinyl flooring?
- Reasoning about quest and story deadlocks etc
- Does Exodus 31:16 teach that the old covenant is eternal?
- What is "Induced Atmospheric Vibration"?
- The term "finitely generated algebra"
- Does Logan age four years (or more), or do they adjust his life clock?
- Tree Diagram is Cramped and Horizontal Stubs Misaligned
- Physics equations with universal meaning possible?
- Is it always valid to use correlation for feature selection?
- Volunteer hours calculation with smarty using event start and end dates
- Revising part of a manuscript not covered by the referee report
- In ST: TNG 6x25, "Timescape", what happens to the Romulan ship?
- Annotating intentional infinite loop to satisfy "-fanalyzer"
- If we can get intelligence from non intelligence, why can’t we get consciousness from non consciousness?
- Can the metric signature differ in different regions of spacetime?